﻿using Microsoft.AspNetCore.Builder;
using Microsoft.AspNetCore.Hosting;
using Microsoft.Extensions.DependencyInjection;
using Zeus.Mvc;
using Zeus.Mvc.Options;

namespace Gaea.CodeFirst.Test
{
    public class Startup
    {
        private ZeusMvcOptions _zeusMvcOptions;

        public Startup()
        {
            _zeusMvcOptions = new ZeusMvcOptions();
        }

        public void ConfigureServices(IServiceCollection services)
        {
            services.AddMvcCore().AddZeus();
        }

        public void Configure(IApplicationBuilder app, IApplicationLifetime applicationLifetime)
        {
            GaeaCodeFirstExtension.RegistCodeFirst();
            app.UseZeus();
            app.UseMvc();
        }
    }
}
